package org.example.utils;

public class RestUtils {
    public static RestVO TOKEN_INVALID_OR_EXPIRED(){
        return error("token无效或已过期","A0230");
    }
    public static RestVO CLIENT_AUTHENTICATION_FAILED(){
        return error("客户端认证失败","A0212");
    }

    public static RestVO error(String message, String code){
        return new RestVO(message,code,null);
    }

    public static RestVO success(String message, String code, Object data){
        return new RestVO(message,code,data);
    }
}
